package devicemanager

func NewElevator(base deviceBase) IDevice {
	return &Elevator{deviceBase: base}
}

//AutoDoor 自动门
type Elevator struct {
	deviceBase
}

func (dev *Elevator) OpenCMD() map[string]interface{} {
	return map[string]interface{}{"elevator_cmd": 1}
}

func (dev *Elevator) CloseCMD() map[string]interface{} {
	return map[string]interface{}{"elevator_cmd": 4}
}

func (dev *Elevator) OpenStatus() deviceStatus {
	return devStatusOpen
}

func (dev *Elevator) CloseStatus() deviceStatus {
	return devStatusClose
}
